package com.ruoyi.qywx.service.inters;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.qywx.entity.Survey;
import com.ruoyi.qywx.model.vo.ServeyQuestionVo;
import com.ruoyi.qywx.model.vo.SurveyVo;
import com.ruoyi.qywx.model.vo.mvb.MvSurveyAnswer;

import java.util.Date;
import java.util.List;

/**
 * @author : hcl
 * @Date : 2023/9/14 11:30
 */
public interface SurveyService {
    AjaxResult create(List<ServeyQuestionVo> survey, Long userId,
                      Date start, Date end, Long teamId);

    AjaxResult edit(Long id, Date start, Date end, List<ServeyQuestionVo> questions, Long teamId);

    List<SurveyVo> list(String keyword, Long teamId);

    Survey selectSurveyById(Long id, Long teamId);

    AjaxResult userAnswer(MvSurveyAnswer answer);

    AjaxResult selectSurveyBySign(Long teamId,String sign,String uuid);
}
